//noPost pop
import Taro from "@tarojs/taro"
import { View} from '@tarojs/components'
import { AtButton} from "taro-ui"
import './index.scss'

export default function NoFavorite(){
  //跳转到职业
  const toPosition=()=>{
    Taro.setStorageSync(`currentPage`,1)
    Taro.reLaunch({
      url: `/pages/employment/employment`
    })
  }

//跳转到公司
  const toCompany=()=>{
    Taro.setStorageSync(`currentPage`,2)
    Taro.reLaunch({
      url:`/pages/employment/employment`
    })
  }

  return (
  <View className='noFavoriteCard'>
        <View className='noFavoriteContent'>
          您暂时还收藏任何职位和企业
        </View>

        <View className='noFavoriteButtonGroup at-row'>
        <AtButton type='primary' size='small' className='noFavoriteButton at-col at-col-5' onClick={toPosition}>
          查看职位
        </AtButton>

        <AtButton type='primary' size='small' className='noFavoriteButton at-col-5' onClick={toCompany}>
         查看企业
        </AtButton>

        </View>
        
  </View>
    )
  
}